package com.ls.pattern.observer.mouse.handler;

import com.ls.pattern.observer.mouse.core.EventContext;

/**
 * @author 挥之以墨
 */
public class Mouse extends EventContext {

    public void click() {
        System.out.println("调用单击方法");
        this.trigger(MouseEventType.ON_CLICK);
    }

    public void move() {
        System.out.println("调用移动方法");
        this.trigger(MouseEventType.ON_MOVE);
    }

}
